@extends("layouts.home")

@section("_css")
<link rel="stylesheet" href="/asset/css/custom/index.css">
@endsection

@section("main_content")
    <div class="search">
        <div class="tt">
            <form action="/Home/Index/index" method="get">
                <input class="sy-form" type="text" name="keyword" value="{{$keyword or ''}}"/>
                <input type="submit" class="search-btn" value="">
            </form>
        </div>
    </div>
    <div class="row content">
        <div class="col-md-3">
            @if($blogList)
            <div class="title-list">
                @foreach($blogList as $i)
                    <div class="list">
                        <div >
                            <img src="{{$i->img}}" class="list-img">
                        </div>
                        <div class="list-title">
                            <span>{{$i->title}}</span>
                            <span>{{$i->summary}}</span>
                        </div>
                    </div>

                @endforeach
            </div>
            <div class="dataTables_paginate paging_bootstrap pagination">
                {!! $blogList->render() !!}
            </div>
            @endif
        </div>
        <div class="col-md-9">
            @if($lastBlogInfo)
            <div>
                <div class="title" style="text-align: center">
                    <h4 class="title">{{$lastBlogInfo->title or ''}}</h4>
                    <h6 style="text-align: right">发布时间：{{$lastBlogInfo->created_at  or ''}}</h6>
                </div>
                <div class="img" style="text-align: center"><img src="{{$lastBlogInfo->img  or ''}}" alt=""></div>
                <div class="content">
                    {!! $lastBlogInfo->content  or ''!!}
                </div>
            </div>
            @endif
        </div>
    </div>
@endsection

@section("_js")


@endsection